<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@include file="/common/definition.jsp"%>
<%@ page language="java" import="java.util.*"%>
<html:html>
<tiles:insert beanName="user-definition" flush="true">
	<tiles:put name="title"> Welcome </tiles:put>
	<tiles:put name="body" type="string">
	<div class="col-md-10">
		<div class="col-md-12 mainHome" style="padding-bottom: 30px;">
			<s:form action="updateAvatar" enctype="multipart/form-data"
				theme="simple">
				<div class="col-md-12 text-center">
					<h1>Thay đổi ảnh đại diện</h1>
				</div>
				<div class="form-group">
						<s:property value="errorChangeAvatar"/>
					</div>
				<s:if
					test="%{#session.avatar == 'img/avatar/default-ava-male.jpg'}">
					<div class="form-group">
						<p>Bạn chưa có ảnh đại diện</p>
					</div>
				</s:if>
					<s:elseif
						test="%{#session.avatar == 'img/avatar/default-ava-female.jpg'}">
						<div class="form-group">
							<p>Bạn chưa có ảnh đại diện</p>
						</div>
					</s:elseif>
					<s:else>
						<div class="form-group">
							<img alt="" src='<s:property value="#session.avatar"/>'>
						</div>
					</s:else>
				<div class="form-group">
					<s:file label="File (1)" name="imgUpload" size="40" />
					
				</div>
				<div class="form-group">
					<div class="col-sm-offset-3 col-sm-10">
						<button type="submit" class="btn btn-primary btn-sm">Xác
							Nhận</button>
						<button type="reset" class="btn btn-default btn-sm">Nhập
							lại</button>
					</div>
				</div>
			</s:form>
		</div>
	</div>
	</tiles:put>
</tiles:insert>
</html:html>
